<?php

class PagesController extends Zend_Controller_Action {

   public function init()  {
      $this->_helper->layout->setLayout('page');
      $_name = str_replace('Action', '', $this->getRequest()->getActionName());
      $this->_setTitle(ucfirst($_name));
   }
   
   private function _setTitle($name) {
      $view = Zend_Layout::getMvcInstance()->getView(); 
      $this->view->title = $view->translate->_($name);
      $this->view->headTitle($this->view->title);
   }

   public function aboutAction() {
      
   }

   public function __call($name, $arguments) {      
      if(method_exists($this, $name)) {         
         $this->$name($arguments);
      }
   }
   
   public function servicesAction() {
      $this->view->title = 'Our Services';
      $this->view->slogan = '
         Been the industry\'s standard dummy text ever since thes, when rinter. 
         Simply dummy text of the m Ipsum has been the industry\'s standard.
      ';
   }
   
   public function seoCrashCourseAction() {
      $this->view->title = ' SEO Crash Course';
      $this->view->slogan = '
         This could probably be the shortest SEO lesson or course you’ll ever see...
      ';
   }


}

